package com.mths.client.dto;

import java.util.Map;

public class CompanyDocumentDTO extends BasicDTO {

	private static final long serialVersionUID = -6975672805952245423L;

	private String objid;

	private String docClass;

	private String docType;

	private String fileSessionKey;

	private Map<String, String> fieldValueMap;

	public String getObjid() {
		return objid;
	}

	public void setObjid(String objid) {
		this.objid = objid;
	}

	public Map<String, String> getFieldValueMap() {
		return fieldValueMap;
	}

	public void setFieldValueMap(Map<String, String> fieldValueMap) {
		this.fieldValueMap = fieldValueMap;
	}

	public String getDocClass() {
		return docClass;
	}

	public void setDocClass(String docClass) {
		this.docClass = docClass;
	}

	public String getDocType() {
		return docType;
	}

	public void setDocType(String docType) {
		this.docType = docType;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((docClass == null) ? 0 : docClass.hashCode());
		result = prime * result + ((docType == null) ? 0 : docType.hashCode());
		result = prime * result + ((fileSessionKey == null) ? 0 : fileSessionKey.hashCode());
		result = prime * result + ((objid == null) ? 0 : objid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompanyDocumentDTO other = (CompanyDocumentDTO) obj;
		if (docClass == null) {
			if (other.docClass != null)
				return false;
		} else if (!docClass.equals(other.docClass))
			return false;
		if (docType == null) {
			if (other.docType != null)
				return false;
		} else if (!docType.equals(other.docType))
			return false;
		if (fileSessionKey == null) {
			if (other.fileSessionKey != null)
				return false;
		} else if (!fileSessionKey.equals(other.fileSessionKey))
			return false;
		if (objid == null) {
			if (other.objid != null)
				return false;
		} else if (!objid.equals(other.objid))
			return false;
		return true;
	}

	public String getFileSessionKey() {
		return fileSessionKey;
	}

	public void setFileSessionKey(String fileSessionKey) {
		this.fileSessionKey = fileSessionKey;
	}

}